This class is used to extract archives. The class contains
four variables and one function. Click on a variable or function below
to view its information. |
|
Variables |
|
Archive
|
This string value contains the full path to
the archive that you want to extract. |
|
|
Target
|
This string value holds the target directory
which the archive contents will be extracted. |
|
|
CreateFolders
|
0 = directories will be created, all contents will be extracted to the target root directory
1 = contents will be extracted to the archives actual structure
|
|
|
Overwrite
|
0 = do not overwrite existing files
1 = overwrite existing files |
|
|
Functions |
|
DoDecompress
|
This is the only function in this class and
it will start the extraction process. First, set the class
variables, then execute this function to begin extracting
the archive. |
|
|
Example: |
function
main()
{
var Decomp
= new Decompress();
Decomp.Archive = "C:\\MyArchive.zip";
Decomp.Target = "C:\\Temp\\";
Decomp.CreateFolders = 1;
Decomp.Overwrite = 0;
Decomp.DoDecompress();
}
|
|